import { defineStore } from "pinia";
import { ref } from "vue";

export const useUserStore = defineStore("user", () => {
    const usertype = ref<string | null>(null);             // 用户类型，如 "1"
    const username_store = ref<string>("");                // 用户名
    const useridentityfer = ref<number | null>(null);               // 身份编号，应为字符串
    const userid = ref<number | null>(null);               // 用户ID，应为 number

    return { usertype, username_store, useridentityfer, userid };
});
